package com.leileimann.tour.mapper;

import com.leileimann.tour.entity.Restaurant;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author leileiMann
 * @date 2022/3/9 16:01
 */
@Mapper
@Repository
public interface RestaurantMapper {
    /**获取所有的餐厅*/
    List<Restaurant> getAllRestaurant();

    /**根据景区名称获取相关餐厅*/
    List<Restaurant> getRestaurantBySSpotName(@Param("sspotname")String sspotname);

    /**根据餐厅名称搜索餐厅*/
    Restaurant getRestaurantByName(@Param("restaurantname")String restaurantname);
}
